﻿using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IntoNails.Models;

namespace IntoNails.Modules.CategoryManagement.ViewModels
{
    public partial class CreateNewServicePopupViewModel
    {
        private ObservableCollection<Category> _categoryCollection;   
        private Category _selectedCategory;

        public ObservableCollection<Category> CategoryCollection
        {
            get { return this._categoryCollection; }
            set
            {
                this._categoryCollection = value;
                base.RaisePropertyChanged(() => CategoryCollection);
            }
        }

        public Category SelectedCategory
        {
            get { return this._selectedCategory; }
            set
            {
                this._selectedCategory = this.InteractionEntity.AssociatedCategory = value;
                base.RaisePropertyChanged(() => SelectedCategory);
            }
        }
    }
}
